#ifndef OPEWIDGET_H
#define OPEWIDGET_H

#include <QWidget>
#include"QListWidget"
#include"friend.h"
#include"diskfile.h"
#include<QStackedWidget>
#include<QHBoxLayout>

// tab页切换功能
class OpeWidget : public QWidget
{
    Q_OBJECT
public:
    explicit OpeWidget(QWidget *parent = 0);

    static OpeWidget &getInstance();

    Friend *getFriend();
    DiskFile *getBook();

signals:

public slots:
private:
    QListWidget *m_pListW;
    Friend *m_pFriend;
    DiskFile *m_pBook;
    QStackedWidget *m_pSW;
};

#endif // OPEWIDGET_H
